Optimal. Leaf size=780 \[ \frac {b \left (-2 a^2 d^2+4 a b c d-\left (b^2 \left (3 c^2-d^2\right )\right )\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{d^2 f \left (c^2-d^2\right ) \sqrt {a+b \sin (e+f x)}}-\frac {\sqrt {a+b} \left (-2 a^2 d^2+4 a b c d-\left (b^2 \left (3 c^2-d^2\right )\right )\right ) \sec (e+f x) (a+b \sin (e+f x)) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (\sin (e+f x)+1)}{(c-d) (a+b \sin (e+f x))}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right )}{d^2 f \sqrt {c+d} (b c-a d)}+\frac {2 (b c-a d)^2 \cos (e+f x) \sqrt {a+b \sin (e+f x)}}{d f \left (c^2-d^2\right ) \sqrt {c+d \sin (e+f x)}}-\frac {b \sqrt {c+d} (3 b c-5 a d) \sec (e+f x) (a+b \sin (e+f x)) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (\sin (e+f x)+1)}{(c-d) (a+b \sin (e+f x))}} \Pi \left (\frac {b (c+d)}{(a+b) d};\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right )}{d^3 f \sqrt {a+b}}-\frac {(a+b)^{3/2} (2 a d-b (3 c+d)) \sec (e+f x) (c+d \sin (e+f x)) \sqrt {\frac {(b c-a d) (1-\sin (e+f x))}{(a+b) (c+d \sin (e+f x))}} \sqrt {-\frac {(b c-a d) (\sin (e+f x)+1)}{(a-b) (c+d \sin (e+f x))}} F\left (\sin ^{-1}\left (\frac {\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right )}{d^2 f (c+d)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 2.47, antiderivative size = 780, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.241, Rules used = {2792, 3061, 3053, 2811, 2998, 2818, 2996} \[ \frac {b \left (-2 a^2 d^2+4 a b c d+b^2 \left (-\left (3 c^2-d^2\right )\right )\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{d^2 f \left (c^2-d^2\right ) \sqrt {a+b \sin (e+f x)}}-\frac {\sqrt {a+b} \left (-2 a^2 d^2+4 a b c d+b^2 \left (-\left (3 c^2-d^2\right )\right )\right ) \sec (e+f x) (a+b \sin (e+f x)) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (\sin (e+f x)+1)}{(c-d) (a+b \sin (e+f x))}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right )}{d^2 f \sqrt {c+d} (b c-a d)}+\frac {2 (b c-a d)^2 \cos (e+f x) \sqrt {a+b \sin (e+f x)}}{d f \left (c^2-d^2\right ) \sqrt {c+d \sin (e+f x)}}-\frac {(a+b)^{3/2} (2 a d-b (3 c+d)) \sec (e+f x) (c+d \sin (e+f x)) \sqrt {\frac {(b c-a d) (1-\sin (e+f x))}{(a+b) (c+d \sin (e+f x))}} \sqrt {-\frac {(b c-a d) (\sin (e+f x)+1)}{(a-b) (c+d \sin (e+f x))}} F\left (\sin ^{-1}\left (\frac {\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right )}{d^2 f (c+d)^{3/2}}-\frac {b \sqrt {c+d} (3 b c-5 a d) \sec (e+f x) (a+b \sin (e+f x)) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (\sin (e+f x)+1)}{(c-d) (a+b \sin (e+f x))}} \Pi \left (\frac {b (c+d)}{(a+b) d};\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right )}{d^3 f \sqrt {a+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2792
Rule 2811
Rule 2818
Rule 2996
Rule 2998
Rule 3053
Rule 3061
Rubi steps
\begin {align*} \int \frac {(a+b \sin (e+f x))^{5/2}}{(c+d \sin (e+f x))^{3/2}} \, dx &=\frac {2 (b c-a d)^2 \cos (e+f x) \sqrt {a+b \sin (e+f x)}}{d \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}-\frac {2 \int \frac {\frac {1}{2} \left (b^3 c^2-a^3 c d-3 a b^2 c d+3 a^2 b d^2\right )+\frac {1}{2} \left (a^2 b c d-b^3 c d-a^3 d^2-a b^2 \left (2 c^2-3 d^2\right )\right ) \sin (e+f x)+\frac {1}{2} b \left (4 a b c d-2 a^2 d^2-b^2 \left (3 c^2-d^2\right )\right ) \sin ^2(e+f x)}{\sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}} \, dx}{d \left (c^2-d^2\right )}\\ &=\frac {2 (b c-a d)^2 \cos (e+f x) \sqrt {a+b \sin (e+f x)}}{d \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}+\frac {b \left (4 a b c d-2 a^2 d^2-b^2 \left (3 c^2-d^2\right )\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{d^2 \left (c^2-d^2\right ) f \sqrt {a+b \sin (e+f x)}}-\frac {\int \frac {\frac {1}{2} \left (-2 a^4 c d^2+4 a^3 b d^3-a b^3 d \left (5 c^2-d^2\right )+b^4 \left (3 c^3-c d^2\right )\right )+\left (b^4 c^2 d+2 a^3 b c d^2-a^4 d^3+a b^3 c \left (3 c^2-5 d^2\right )-6 a^2 b^2 d \left (c^2-d^2\right )\right ) \sin (e+f x)+\frac {1}{2} b^3 (3 b c-5 a d) \left (c^2-d^2\right ) \sin ^2(e+f x)}{(a+b \sin (e+f x))^{3/2} \sqrt {c+d \sin (e+f x)}} \, dx}{d^2 \left (c^2-d^2\right )}\\ &=\frac {2 (b c-a d)^2 \cos (e+f x) \sqrt {a+b \sin (e+f x)}}{d \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}+\frac {b \left (4 a b c d-2 a^2 d^2-b^2 \left (3 c^2-d^2\right )\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{d^2 \left (c^2-d^2\right ) f \sqrt {a+b \sin (e+f x)}}-\frac {(b (3 b c-5 a d)) \int \frac {\sqrt {a+b \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx}{2 d^2}-\frac {\int \frac {-\frac {1}{2} a^2 b^3 (3 b c-5 a d) \left (c^2-d^2\right )+\frac {1}{2} b^2 \left (-2 a^4 c d^2+4 a^3 b d^3-a b^3 d \left (5 c^2-d^2\right )+b^4 \left (3 c^3-c d^2\right )\right )+b \left (-a b^3 (3 b c-5 a d) \left (c^2-d^2\right )+b \left (b^4 c^2 d+2 a^3 b c d^2-a^4 d^3+a b^3 c \left (3 c^2-5 d^2\right )-6 a^2 b^2 d \left (c^2-d^2\right )\right )\right ) \sin (e+f x)}{(a+b \sin (e+f x))^{3/2} \sqrt {c+d \sin (e+f x)}} \, dx}{b^2 d^2 \left (c^2-d^2\right )}\\ &=-\frac {b \sqrt {c+d} (3 b c-5 a d) \Pi \left (\frac {b (c+d)}{(a+b) d};\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right ) \sec (e+f x) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sin (e+f x))}{(c-d) (a+b \sin (e+f x))}} (a+b \sin (e+f x))}{\sqrt {a+b} d^3 f}+\frac {2 (b c-a d)^2 \cos (e+f x) \sqrt {a+b \sin (e+f x)}}{d \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}+\frac {b \left (4 a b c d-2 a^2 d^2-b^2 \left (3 c^2-d^2\right )\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{d^2 \left (c^2-d^2\right ) f \sqrt {a+b \sin (e+f x)}}-\frac {\left (-\frac {1}{2} a^2 b^3 (3 b c-5 a d) \left (c^2-d^2\right )+\frac {1}{2} b^2 \left (-2 a^4 c d^2+4 a^3 b d^3-a b^3 d \left (5 c^2-d^2\right )+b^4 \left (3 c^3-c d^2\right )\right )-b \left (-a b^3 (3 b c-5 a d) \left (c^2-d^2\right )+b \left (b^4 c^2 d+2 a^3 b c d^2-a^4 d^3+a b^3 c \left (3 c^2-5 d^2\right )-6 a^2 b^2 d \left (c^2-d^2\right )\right )\right )\right ) \int \frac {1}{\sqrt {a+b \sin (e+f x)} \sqrt {c+d \sin (e+f x)}} \, dx}{(a-b) b^2 d^2 \left (c^2-d^2\right )}+\frac {\left (-a b \left (-a b^3 (3 b c-5 a d) \left (c^2-d^2\right )+b \left (b^4 c^2 d+2 a^3 b c d^2-a^4 d^3+a b^3 c \left (3 c^2-5 d^2\right )-6 a^2 b^2 d \left (c^2-d^2\right )\right )\right )+b \left (-\frac {1}{2} a^2 b^3 (3 b c-5 a d) \left (c^2-d^2\right )+\frac {1}{2} b^2 \left (-2 a^4 c d^2+4 a^3 b d^3-a b^3 d \left (5 c^2-d^2\right )+b^4 \left (3 c^3-c d^2\right )\right )\right )\right ) \int \frac {1+\sin (e+f x)}{(a+b \sin (e+f x))^{3/2} \sqrt {c+d \sin (e+f x)}} \, dx}{(a-b) b^2 d^2 \left (c^2-d^2\right )}\\ &=-\frac {\sqrt {a+b} \left (4 a b c d-2 a^2 d^2-b^2 \left (3 c^2-d^2\right )\right ) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right ) \sec (e+f x) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sin (e+f x))}{(c-d) (a+b \sin (e+f x))}} (a+b \sin (e+f x))}{d^2 \sqrt {c+d} (b c-a d) f}-\frac {b \sqrt {c+d} (3 b c-5 a d) \Pi \left (\frac {b (c+d)}{(a+b) d};\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right ) \sec (e+f x) \sqrt {-\frac {(b c-a d) (1-\sin (e+f x))}{(c+d) (a+b \sin (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sin (e+f x))}{(c-d) (a+b \sin (e+f x))}} (a+b \sin (e+f x))}{\sqrt {a+b} d^3 f}+\frac {2 (b c-a d)^2 \cos (e+f x) \sqrt {a+b \sin (e+f x)}}{d \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}+\frac {b \left (4 a b c d-2 a^2 d^2-b^2 \left (3 c^2-d^2\right )\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{d^2 \left (c^2-d^2\right ) f \sqrt {a+b \sin (e+f x)}}-\frac {(a+b)^{3/2} (2 a d-b (3 c+d)) F\left (\sin ^{-1}\left (\frac {\sqrt {c+d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {c+d \sin (e+f x)}}\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right ) \sec (e+f x) \sqrt {\frac {(b c-a d) (1-\sin (e+f x))}{(a+b) (c+d \sin (e+f x))}} \sqrt {-\frac {(b c-a d) (1+\sin (e+f x))}{(a-b) (c+d \sin (e+f x))}} (c+d \sin (e+f x))}{d^2 (c+d)^{3/2} f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 6.81, size = 2006, normalized size = 2.57 \[ \text {Result too large to show} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 4.84, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {{\left (b^{2} \cos \left (f x + e\right )^{2} - 2 \, a b \sin \left (f x + e\right ) - a^{2} - b^{2}\right )} \sqrt {b \sin \left (f x + e\right ) + a} \sqrt {d \sin \left (f x + e\right ) + c}}{d^{2} \cos \left (f x + e\right )^{2} - 2 \, c d \sin \left (f x + e\right ) - c^{2} - d^{2}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (b \sin \left (f x + e\right ) + a\right )}^{\frac {5}{2}}}{{\left (d \sin \left (f x + e\right ) + c\right )}^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 51.24, size = 3436958, normalized size = 4406.36 \[ \text {output too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (b \sin \left (f x + e\right ) + a\right )}^{\frac {5}{2}}}{{\left (d \sin \left (f x + e\right ) + c\right )}^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\left (a+b\,\sin \left (e+f\,x\right )\right )}^{5/2}}{{\left (c+d\,\sin \left (e+f\,x\right )\right )}^{3/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________